using System;

public partial class TreyResearchOnlineEMR : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.Page.Title.Equals("Trey Research - Provider Login") && !this.Page.Title.Equals("Trey Research - Provider Registration")
            && !this.Page.Title.Equals("Trey Research - Create User"))
        {
            if (!string.IsNullOrEmpty(Session["UserName"].ToString().Trim()))
            {
                LabelPractices.Text = "Welcome " + Session["UserName"].ToString() + ", &nbsp; <a Href='Login.aspx'>Signout</a>";
            }
            else
            {
                Response.Redirect("Login.aspx");
            }
        }
    }
}